home *** CD-ROM | disk | FTP | other *** search
/ The Sunday Times: Parent Power / The Sunday Times - Parent Power.iso / pc / engine / map.swf / scripts / DefineSprite_357 / frame_1 / DoAction.as
Encoding:
Text File  |  2005-10-31  |  1.1 KB  |  49 lines

  1. this.shown = false;
  2. stop();
  3. arrZoomAreas = ["London","West Midlands","Merseyside","Greater Manchester"];
  4. var arrZoomed;
  5. showZoom = function(nm)
  6. {
  7.    gotoAndStop("l_fade");
  8.    play();
  9.    mask_btn.useHandCursor = false;
  10.    nmMap = nm;
  11. };
  12. onFadeEnd = function()
  13. {
  14.    function()
  15.    {
  16.       LEAmap.oBroadcaster.broadcastMessage("onHideDetailMap");
  17.       var mc = eval("LEAmap.map_mc.z_" + nmMap + "_mc");
  18.       LEAmap.setSelectedLEA(mc);
  19.       LEAmap.showRollover(LEAmap.map_mc.arrZooms[nmMap],mc);
  20.    }
  21.    gotoAndStop("l_" + nmMap);
  22.    close_btn;
  23.    "onRelease";
  24. };
  25. makeButtons = function(mc)
  26. {
  27.    var _loc3_ = mc;
  28.    var _loc2_ = arrZoomed.length;
  29.    var _loc1_ = 1;
  30.    while(_loc1_ <= _loc2_)
  31.    {
  32.       _loc3_["z_" + _loc1_ + "_mc"].__proto__ = mcZoom.prototype;
  33.       _loc1_ = _loc1_ + 1;
  34.    }
  35. };
  36. mcZoom = function()
  37. {
  38.    return this;
  39. };
  40. mcZoom.prototype = new LEAmap.mcRollover();
  41. mcZoom.prototype.onRollOver = function()
  42. {
  43.    LEAmap.showRollover(arrZoomed[this.nmIndex - 1],this);
  44. };
  45. mcZoom.prototype.onRelease = function()
  46. {
  47.    LEAmap.setLEA(arrZoomed[this.nmIndex - 1],this.nmIndex);
  48. };
  49.